package com.caigou.comm.base.widget

import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.EditText
import android.widget.ImageView
import androidx.constraintlayout.widget.ConstraintLayout
import com.caigou.comm.R

/**
 * @author #Suyghur.
 * Created on 2021/09/22
 */
class EventEditText : ConstraintLayout {

    lateinit var leftImageView: ImageView
        private set
    lateinit var rightImageView: ImageView
        private set
    lateinit var editText: EditText
        private set


    constructor(context: Context) : this(context, null)

    constructor(context: Context, attrs: AttributeSet?) : this(context, attrs, 0)

    constructor(context: Context, attrs: AttributeSet?, defStyleAttr: Int) : super(context, attrs, defStyleAttr) {
        initView(context)
    }

    private fun initView(context: Context) {
        LayoutInflater.from(context).inflate(R.layout.comm_event_edit_text, this)
        leftImageView = findViewById(R.id.caigou_eet_iv_left)
        editText = findViewById(R.id.caigou_eet_input)
        rightImageView = findViewById(R.id.caigou_eet_iv_right)
    }
}